<?php
/*
	获取活动详情
	电商客商品列表页和商品详情页会调用本方法以获得商品详情
*/
defined('BY_JYA') or exit('error');
list($goods_id,$optionid,$mid)=$arguments;
$mid=$mid?:$_SESSION['uid'];
$member=$this->get('member',array('mid'=>$mid));
$setting=$this->plugin_setting('setting');
if(!$setting['showgetfee']){
	return false;
}else if($setting['showgetfee']==2){
	if(!$member['is_agent'] || $member['stop']){
		return false;
	}
}
$goods=$this->model('commission')->get_fee($goods_id,$setting,$member);
$goods['commission_title']=$setting['showgettitle']?:'预估赚';
$goods['commission_sysbutie']=price($setting['sysbutie'],true);
return $goods;